/**
 * Created by wuwy on 2016/2/17.
 */
var express = require('express');
var router = express.Router();
var async = require('async');
var provCityAreaController = require('../controllers/prov_city_area');
var util = require('../config/public.js');

//提交站点管理查询
router.post('/getList', function(req, res) {
    var param = req.body;
    try {
        async.auto({
            list: function(cb) {
                provCityAreaController.getList(param, cb);
            },
            count: function(cb) {
                provCityAreaController.count(param, cb);
            },
        }, function(err, data) {
            res.send({
                code: "200",
                msg: "获取详情成功",
                result: data.list
            });
        });
    } catch (err) {
        res.end(err.stack);
    }
});


module.exports = router;